FROM openjdk:11
MAINTAINER xieshihong

ADD target/ctshk-cloud-gateway.jar gateway.jar
RUN bash -c 'touch /gateway.jar'
#暴露的端口号
EXPOSE 9000
#指定执行启动spring boot小项目     ENTRYPOINT 为容器启动后执行的命令
ENTRYPOINT ["java","-jar","/gateway.jar"]